home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 128 27
/
q27.d81
/
t.dt128 docs 8
< prev
next >
Wrap
Text File
|
2022-08-28
|
14KB
|
340 lines
Macro Module
------------
The macro module allows you to redefine up to 26 keys in terminal mode.
The keys that you may redefine are:
The 8 function keys (F1 - F8)
The entire keypad
The 4 arrow keys
This makes for a total of 26 possible macros. The exception to this is if
you are in C/G terminal mode. In that mode you may define a macro for the
8 function keys only.
The module can be entered 2 different ways. The first is through the
miscellaneous menu. The second way is directly from terminal mode by using
the short Alt-V command.
Once you have entered the module you have 2 options. The first is to edit
the buffer. This option takes you directly to the main system buffer
editor (the same as "Edit Buffer" in the buffer menu except that when you
exit the editor you return to the module). The main buffer is used to
create the 26 macros. The second option in the module is to load macros.
This moves the 26 macros into the module's private buffer area which frees
up the main buffer should you need to use it.
Macro format:
F1 macro text<NULL>F2 macro text<NULL>...KEYPAD ENTER text<NULL>
Each macro must end with a null character (Ascii 0, type CTRL-@ to enter it
in the editor). The null characters act as end markers for each macro. If
you are starting from scratch you should clear the buffer and enter exactly
26 null characters. You must ALWAYS have 26 macros defined or the "Load
Macros" option will not work. If you entered the editor from this module
there is one additional command which may be used. The normal F8 editor
command is changed to show you in which macro the current cursor position
is. To follow our example you should have 26 null characters in the
buffer. Position the cursor upon any of the nulls and press F8. You will
then see which macro the cursor is currently in. The 26 macros are defined
in the following order:
F1, F2, F3, F4, F5, F6, F7, F8, Up Arrow, Down Arrow, Left Arrow, Right
Arrow, Keypad 0-9, Period, Plus, Minus, ENTER.
When you have created a set of 26 macros you may use the standard "Save
Buffer" in the Buffer Menu to save your macro set. You may re-load/modify
your macros as often as you wish.
When you are in terminal mode and you press one of the 26 macro keys the
key will send the macro you defined for that key. If you have not defined
a macro for a key it becomes "dead" and nothing is transmitted.
A Step-By-Step Method to Defining Your Macros (Offline):
1. Load this module through the "Miscellaneous Menu"
2. Press ESCape until you are at the main menu and enter terminal mode.
Set the terminal type to that desired (short Alt-T).
3. Type "ATE1" followed by RETURN until you see the modem respond "Ok".
You may also wish to turn on local linefeeds (short Alt-L).
4. Press short Alt-V to jump to the module directly from terminal mode,
then select "Edit Buffer"
5. Enter 26 null characters at the start of the buffer
6. Position the cursor to a key you wish to define (press F8 to verify
you are in the correct place)
7. Type a sample string, anything you like
8. Press ESCape to return to this module, then select "Load Macros"
9. Press ESCape again to return to terminal mode. Now press the key(s)
you defined. You should see the string on your screen each time you press
the key.
10. You may use the Alt-V/Edit/Load sequence as often as you want.
11. When you are satisfied with the macros you have created you should
save the buffer to disk. You can then load this file into the buffer at a
later time and then re-load them into this module.
12. You should also reset the modem by typing "ATE0" followed by RETURN in
terminal mode or by selecting the "Initialize Modem" option in the RS-232
Menu.
Notes:
This module is not particularly user friendly so be patient when you are
first using it. To further aid you the file "sample macros" is supplied on
your system disk. You should load this file into the buffer using True
Ascii and study it. The file sets up the 26 macros to send a string
telling which key was pressed, i.e. if you press F1 the string "F1" is
transmitted, etc. To see it in action after loading the file into the
buffer enter this module and select the "Load Macros" option. Then enter
terminal mode, turn on the modem's echo with ATE1, then press each of the
26 macro keys. The sample file can also be used as a shell. Simply
replace the text with your strings for each key.
Each time you select "Load Macros" any previously loaded macros are
overwritten. If your macros are not set up properly in the buffer or they
are too big as a whole (you can store approximately 3,500 bytes) the macros
will not load into the module and all macro keys become "dead". If this
happens you will have to re-enter the editor and verify that you have 26
macros defined and that the size of of 26 macros combined does not exceed
the macro buffer size.
Macros remain in affect until you select another system module.
Configure RS-232
----------------
C128 Recognizes DTR:
When "Yes" the computer controls the DTR (Data Terminal Ready) line.
Older 1670s do not support this line - you must set this to "No" if you
are using that type of modem.
Newer 1670s do support this line. If you set this to "No" then DIP
switch 4 must be down. If you set this to "Yes" then DIP switch 4 must be
up.
The way you set this line determines how the modem is taken off-line.
If this option is "No" the hang up procedure is:
Clear transmission buffer
Pause for 1.5 seconds
Modem escape sequence is sent to the modem
Pause for 1.5 seconds
ATS0=0H0 is sent to the modem (disable auto-answer and hang up)
Pause 1.5 seconds
If a carrier is still present then repeat
If this option is "Yes" the hang up procedure is:
Clear transmission buffer
Toggle the DTR line
Pause for 1 second
Toggle the DTR line (returns to original state)
If a carrier is still present then repeat
Make sure this setting matches the set up of your modem! If it doesn't
you will have problems. If this option is "No" your modem should be set to
ignore the DTR line. If this option is "Yes" your modem should be set to
hang up and return to command mode following an ON-to-OFF transition of the
DTR line. This may require setting DIP switches or by using the "&Dx"
Hayes command which accomplishes this, where the "x" is the value required
by your modem.
Recognize SI Line (Pin J)
SI is the "speed indicate" line. This tells the computer the baud rate
of an incoming call. The old 1670s do not support this function, but the
newer 1670s do. If you have this option set to "Yes" dip switch 3 must be
down. For other modems consult your manual to see if this function is
supported.
SI Bps:
Defines the speed of an incoming call when the SI line goes low. This
option is not used unless you are using the SI line to determine a caller's
baud rate.
Modem Type:
"1670" is the correct setting for the older 1670 modem. "Hayes" is the
correct setting for modems that are 100% Hayes compatible (including newer
1670s). This setting is important for the "Initialize Modem" option (see
"rs232.asc").
Escape Code:
This is the Ascii code used as the modem escape character which can be
changed with the "S2=" command (defaults to Ascii 43 "+"). If you want to
use a different character you must first change the "S2=" in the modem
initialization string. Then select the "Initialize Modem" command. After
the modem is initialized change the value here to the Ascii value you used.
You will probably never need to change this.
Handshaking Mode:
Should be 3-line.
Duplex:
Should be set to "Full".
Carrier Detect:
The normal setting is "Inverted" for 1670s. If you have this setting
wrong the program will think there is a carrier when there isn't and it
won't recognize a carrier when there is. If you are using a modem that
requires an interface you may need to set this to "Normal" depending on how
your interface is set up. If the carrier detect is backwards try changing
this.
Some modems have the ability to def